﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IRProject.Model
{
    class ResultEqualityComparer : EqualityComparer<ResultData>
    {
        public override bool Equals(ResultData x, ResultData y)
        {
            return x.DocId == y.DocId;
        }

        public override int GetHashCode(ResultData obj)
        {
            return obj.DocId.GetHashCode();
        }
    }
}
